package bcnet.domain;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class UserCode {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    @Persistent
    private String code;
    
    @Persistent
    private String refresh;
    
    @Persistent
    private Date updateDate;

    public UserCode(Key key, String code, String refresh, Date updateDate) {
    	this.key = key;
        this.code = code;
        this.refresh = refresh;
        this.updateDate = updateDate;
    }
    
    

    public Key getKey() {
        return key;
    }

    public String getCode() {
        return code;
    }
    
    public String getRefresh() {
        return refresh;
    }

    public Date getUpdateDate() {
        return updateDate;
    }
    
    public void setKey(Key key){
    	this.key = key;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setRefresh(String refresh) {
        this.refresh = refresh;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
}